package sns.util;

import sns.bean.User;

public class RecommendUser {
	
	public static final int REASON_TAG = 0;
	public static final int REASON_IMPRESSION = 1;
	
	private User user;
	private String reason_txt;
	private int reason;
	
	public RecommendUser(User user, String reason_txt, int reason){
		this.user = user;
		this.reason_txt = reason_txt;
		this.reason = reason;
	}
	
	public String toString(){
		String r = "";
		if(reason==REASON_TAG){
			r += "你们有共同标签";
		}else if(reason==REASON_IMPRESSION){
			r += "你们共同印象";
		}
		return r+":"+reason_txt+"; "+user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getReason_txt() {
		return reason_txt;
	}

	public void setReason_txt(String reason_txt) {
		this.reason_txt = reason_txt;
	}

	public int getReason() {
		return reason;
	}

	public void setReason(int reason) {
		this.reason = reason;
	}
	
}
